<?php

namespace common\models\DAO;

use Yii;

/**
 * This is the model class for table "mx_user_address".
 *
 * @property integer $id
 * @property integer $userID
 * @property string $takeName
 * @property string $takeMobile
 * @property string $takePhone
 * @property integer $provinceID
 * @property integer $cityID
 * @property integer $area
 * @property string $particular
 * @property integer $createTime
 * @property integer $updateTime
 */
class UserAddress extends \yii\db\ActiveRecord
{
    /**
     * @inheritdoc
     */
    public static function tableName()
    {
        return 'mx_user_address';
    }

    /**
     * @inheritdoc
     */
    public function rules()
    {
        return [
            [['userID', 'provinceID', 'cityID', 'area', 'createTime', 'updateTime'], 'integer'],
            [['takeName', 'takeMobile', 'takePhone'], 'string', 'max' => 50],
            [['particular'], 'string', 'max' => 200],
        ];
    }

    /**
     * @inheritdoc
     */
    public function attributeLabels()
    {
        return [
            'id' => 'ID',
            'userID' => '用户ID',
            'takeName' => '收货人姓名',
            'takeMobile' => '收货人手机',
            'takePhone' => '收货人固话（选填）',
            'provinceID' => '省',
            'cityID' => '市',
            'area' => '区',
            'particular' => '详细地址',
            'createTime' => '添加时间',
            'updateTime' => '修改时间',
        ];
    }
}
